package com.studyroom.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import com.studyroom.entity.Feedback;

public interface FeedbackService extends IService<Feedback> {
    // 用户端方法
    void submit(String username, Feedback feedback);
    
    Page<Feedback> getMyFeedback(String username, Integer page, Integer size);
    
    Feedback getDetail(String username, Long id);
    
    // 管理员端方法
    IPage<Feedback> getFeedbackPage(Page<Feedback> page, String content, Integer status);
    
    Page<Feedback> getAdminFeedbackList(Integer current, Integer size, String content, Integer status);
    
    void reply(Long id, String reply);
    
    // 添加删除方法的声明
    boolean deleteFeedback(Long id);
} 